02 / 03

How do you define types in TypeScript?

Types in TypeScript can be defined using the:
  1. 1

    type keyword or the

  2. 2

    interface keyword.

javascript